<template>
	<view>
		<!-- 我的商铺推广师 -->
		<view class="p-l-20 p-r-20 m-t-20" style="z-index: 99999999 !important;">
			<uv-search placeholder="搜索推广师" v-model="keyword" @search="searchFn" :showAction="false" style="z-index: 99999999 !important;"></uv-search>
		</view>
		<view class="p-20">
		<block v-for="(item,i) in promoterList" :key="i">
			<promoter type="my" :item="item"></promoter>
		</block>
		</view>
		
	</view>
</template>

<script>
	export default {
		data() {
			return {
				search:'',
				promoterList:[]
			};
		},
		onLoad() {
			this.promoter()
		},
		methods:{
			searchFn() {
				this.promoter()
			},
			promoter() {
				this.$api.sendRequest({
					url:'/api/user/promoter',
					data:{
						search:this.search
					},success:res=>{
						this.promoterList = res.data
					}
				})
			}
		}
	}
</script>

<style lang="scss">

</style>
